/*
 * Copyright (c) 2017-2019, Lindenis Tech. Ltd.
 * All rights reserved.
 *
 * File:
 *
 * Description:
 *
 * Author:
 *      xiaoshujun@lindeni.com
 *
 * Create Date:
 *      2021/06/05
 *
 * History:
 *
 */

#ifndef __G2D_WRAPPER_H__
#define __G2D_WRAPPER_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "osal_types.h"
#include "lindcomponent.h"

_handle_t g2d_create();
void      g2d_destroy(_handle_t h_g2d);
int       g2d_rotate(_handle_t h_g2d, av_frame2_t * p_src, av_frame2_t * p_dst, rotate_degree_e degree);
int       g2d_copy(_handle_t h_g2d, av_frame2_t * p_src, av_frame2_t * p_dst);

#ifdef __cplusplus
}
#endif

#endif  // __G2D_WRAPPER_H__

